import request from '@/sheep/request';

  export default {
    getcompanyList: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getCompanyList`,
        method: "POST",
        data: params,
      }),
    getTaskList: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getTaskList`,
        method: "POST",
        data: params,
      }),
    
    getTaskManyUnityList: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getTaskManyUnityList`,
        method: "POST",
        data: params,
      }),
    getDailyUnityAssessInfo: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getDailyUnityAssessInfo`,
        method: "POST",
        data: params,
      }),
    getTaskUnityAssessInfo: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getTaskUnityAssessInfo`,
        method: "POST",
        data: params,
      }),
    getItemCriteriaEdit: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=getItemCriteriaEdit`,
        method: "POST",
        data: params,
      }),
   
    itemCriteriaEditForm: (params) =>
      request({
        url: `/app_api.php?t=fire_assess&s=fireman&op=itemCriteriaEditForm`,
        method: "POST",
        data: params,
      }),
  
    // 消防头像上传
    userEdit: (params) =>
      request({
        url: `/app_api.php?t=fire_info&s=fireman&op=fireUserUpdateAvatarUrl`,
        method: 'POST',
        data: params
    }),
    userEditPassword: (params) =>
      request({
        url: `/app_api.php?t=fire_info&s=fireman&op=fireUserUpdatePassword`,
        method: 'POST',
        data: params
    }),
}